package com.gkey.sole.base.bean;

import java.util.List;
import java.util.Map;

/**  
 * @Title: easyui tree树形对象
 * @Package com.hckj.system.tree.model
 * @Description: TODO
 * @author GuoKey
 * @date 2015-5-23 下午2:31:11
 * @version 1.0
 */
public class TreeModel {
	
	private String id ;
	
	private String fatherId;
	
	private boolean isleaf;	
	
	private String text;
	
	private String state;//'open' or 'closed'	

	private String iconCls;
	
	private boolean checked;
	
	private Integer level;
	
	private Map<String, String> attributes;
	
	private List<TreeModel> children;

	@Override
	public String toString() {
		return "TreeModel [id=" + id + ", fatherId=" + fatherId + ", isleaf="
				+ isleaf + ", text=" + text + ", state=" + state + ", iconCls="
				+ iconCls + ", checked=" + checked + ", attributes="
				+ attributes + ", children=" + children + "]";
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}
	
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public boolean isChecked() {
		return checked;
	}

	public void setChecked(boolean checked) {
		this.checked = checked;
	}
	
	public Map<String, String> getAttributes() {
		return attributes;
	}

	public void setAttributes(Map<String, String> attributes) {
		this.attributes = attributes;
	}

	public List<TreeModel> getChildren() {
		return children;
	}

	public void setChildren(List<TreeModel> children) {
		this.children = children;
	}

	public String getIconCls() {
		return iconCls;
	}

	public void setIconCls(String iconCls) {
		this.iconCls = iconCls;
	}

	public String getFatherId() {
		return fatherId;
	}

	public void setFatherId(String fatherId) {
		this.fatherId = fatherId;
	}

	public boolean isIsleaf() {
		return isleaf;
	}

	public void setIsleaf(boolean isleaf) {
		this.isleaf = isleaf;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}
	
	

	
}